package cn.psvmc.cxzapi.mapper.store;

import cn.psvmc.cxzapi.config.mybatisplus.mapper.MyBaseMapper;
import cn.psvmc.cxzapi.model.store.TAccount;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 账户表 Mapper 接口
 * @Author auto
 * @Date 2024-08-14
 */
public interface TAccountMapper extends MyBaseMapper<TAccount> {

    //账户概览
    List<Map<String, Object>> listByStoreId(@Param("storeId") Integer storeId);

    //根据账户类型和商户ID查询账户信息
    TAccount findByAccountTypeAndStoreId(@Param("accountType") Integer accountType,@Param("storeId") Integer storeId);

    //更新账户余额
    void updateByAccountId(@Param("account") TAccount account);
}
